import { IsString, Length } from 'class-validator';

export class SignInDto {
  @IsString({ message: '帐号不能为空' })
  username: string;

  @IsString({ message: '密码不能为空' })
  @Length(6, 100, { message: '密码最少6位数' })
  password: string;
}
